﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BooksAPI.Models
{
    public class Book
    {
        public int BookID { get; set; }

        public string Title { get; set; }

        public decimal Price { get; set; }

        public string Genre { get; set; }

        public DateTime PublishDate { get; set; }

        public string Description { get; set; }

        public int AuthorID { get; set; }

        [SugarColumn(IsIgnore=true)]
        public Author Author { get; set; }

    }
}